﻿namespace Authority.Model
{
    public class ConstRedisKey
    {

        #region  登录
        /// <summary>
        /// 验证码失效时间
        /// </summary>
        public const int TimeOut = 120;

        /// <summary>
        /// 登录验证码Redis地址
        /// </summary>
        public const string RedisValidateCode = "GRD.ERP:ValidateCode";

        /// <summary>
        /// 登录Session Redis地址
        /// </summary>
        public const string RedisSessionCode = "GRD.ERP:SessionCode";
        #endregion

        #region 入驻

        /// <summary>
        /// 入驻验证码Redis地址
        /// </summary>
        public const string RedisSetteldCode = "GRD.ERP:SetteldCode";

        /// <summary>
        /// 入驻验证码失效时间
        /// </summary>
        public const int SetteldCodeTimeOut = 300;

        /// <summary>
        /// 入驻组织结构编码Redis地址
        /// </summary>
        public const string RedisOrganizationCode = "GRD.ERP:OrganizationCode";
        #endregion

        #region 员工及工程项目

        /// <summary>
        /// Project编码Redis地址
        /// </summary>
        public const string RedisProjectCode = "GRD.ERP:Project";

        /// <summary>
        /// Employee编码Redis地址
        /// </summary>
        public const string RedisEmployeeCode = "GRD.ERP:Employee";

        #endregion

        #region  重置密码
        /// <summary>
        /// 重置密码验证码Redis地址
        /// </summary>
        public const string RedisForgetPswCode = "GRD.ERP:ForgetPswCode";

        /// <summary>
        /// 重置密码验证码失效时间
        /// </summary>
        public const int ForgetPswCodeTimeOut = 300;
        #endregion

        #region 菜单和按钮
        /// <summary>
        /// Menus Redis地址
        /// </summary>
        public const string RedisMenusCode = "GRD.ERP:MenusCode";

        /// <summary>
        /// Buttons Redis地址
        /// </summary>
        public const string RedisButtonsCode = "GRD.ERP:ButtonsCode";

        /// <summary>
        /// 登录Session Key
        /// </summary>
        public const string RedisSessionKey = "SessionCode";
        #endregion

        /// <summary>
        ///Web界面Redis数据节点
        /// </summary>
        public const int RedisDbWeb = 1;
    }
}
